<?php
/**
 * Created by b17
 * 2/29/12 9:03 PM
 */

namespace Managers\Mailer;

class Mail extends \Zend_Mail
{
    private $_scriptPath;

    private $_baseUrl;

    public function __construct()
    {
        parent::__construct();
        $from = \Zend_Registry::get('config')->email->from;
        $this->setFrom($from);

        $dirs = \Zend_Controller_Front::getInstance()->getControllerDirectory();
        $this->_scriptPath = dirname($dirs['default']) . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR;

        $this->_baseUrl = \Zend_Registry::get('config')->resources->frontController->baseUrl;
    }

    protected function _getScriptPath()
    {
        return $this->_scriptPath;
    }

    protected function _getBaseUrl()
    {
        return $this->_baseUrl;
    }


}
